package com.fastloan.safe.mgt.root.service.impl;

import com.fastloan.safe.mgt.root.dao.CmDefRoleFunMapper;
import com.fastloan.safe.mgt.root.model.CmDefRoleFun;
import com.fastloan.safe.mgt.root.service.CmDefRoleFunService;
import com.kawins.base.BaseMapper;
import com.kawins.base.baseabs.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CmDefRoleFunServiceImpl extends BaseServiceImpl<CmDefRoleFun> implements CmDefRoleFunService {

    @Autowired
    private CmDefRoleFunMapper defRoleFunMapper;

    @Override
    protected BaseMapper<CmDefRoleFun> buildDao() {
        return defRoleFunMapper;
    }

    @Override
    public void insertList(List<CmDefRoleFun> list) {
        defRoleFunMapper.insertList(list);
    }

    @Override
    public List<CmDefRoleFun> selectByUserId(String userId) {
        return defRoleFunMapper.selectByUserId(userId);
    }
}
